-
Notifications
You must be signed in to change notification settings - Fork 139
Add MPFS250 QSPI support #677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
633e7f8 to
5e963dc
Compare
danielinux
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, some minor visibility issues
hal/mpfs250.h
Outdated
| * System Controller Mailbox API (public) | ||
| * ============================================================================ */ | ||
| #ifndef __ASSEMBLER__ | ||
| /* Returns non-zero if mailbox is busy */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason why this API is public? Will these functions be used by other modules outside mpfs250.c ?
hal/mpfs250.c
Outdated
| } | ||
|
|
||
| /* Wait for flash to be ready (poll status register) */ | ||
| int qspi_wait_ready(uint32_t timeout_ms) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static
hal/mpfs250.c
Outdated
| } | ||
|
|
||
| /* Send Write Enable command */ | ||
| int qspi_write_enable(void) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static
hal/mpfs250.c
Outdated
| } | ||
|
|
||
| /* Read JEDEC ID from flash */ | ||
| int qspi_read_id(uint8_t *id_buf) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static ?
hal/mpfs250.c
Outdated
| * data_len: Length of data phase | ||
| * dummy_cycles: Number of idle cycles between command and data phase | ||
| */ | ||
| int qspi_transfer_block(uint8_t read_mode, const uint8_t *cmd, uint32_t cmd_len, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static
hal/mpfs250.c
Outdated
| * Returns: non-zero if busy, 0 if ready | ||
| */ | ||
| static int mpfs_scb_mailbox_busy(void) | ||
| int mpfs_scb_is_busy(void) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the comment in .h -- if those become internal to the mpf250.c module, these functions starting with mpfs_ should become static.
5e963dc to
2f8ce14
Compare
Summary
Key Changes
config/examples/polarfire_mpfs250_qspi.confighal/mpfs250.c(MSS QSPI + SC SPI paths)arch.mkfor update loader selection + ELF signingdocs/Targets.mdtools/scripts/mpfs_program.shTesting